package org.duang.db.sql;

import javax.sql.DataSource;

import org.duang.kit.ToolsKit;

public class Sql extends SqlConnection {

	private static Sql sql;
	
	public static Sql getInstance(){
		if(ToolsKit.isEmpty(sql)){
			sql = new Sql();
		}
		return sql;
	}
	
	public static DataSource getDataSource(){
		return getInstance().getDs();
	}
	
	public static void download() {
		getInstance().stop();
	}
}
